package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LStudyNotes
 * @date 2021.04.08 10:08
 * @describe 学习笔记实体类
 */
@TableName("l_study_notes")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LStudyNotes对象", description="学习笔记")
public class LStudyNotes implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "study_notes_id", type = IdType.AUTO)
    private Integer studyNotesId;

    @ApiModelProperty(value = "学习笔记")
    @TableField("study_notes")
    private String studyNotes;

    @ApiModelProperty(value = "课程id")
    @TableField("course_id")
    private Integer courseId;

    @TableField(exist = false)
    private String courseName;

    @ApiModelProperty(value = "章节id")
    @TableField("chapter_id")
    private Integer chapterId;

    @TableField(exist = false)
    private String chapterName;

    @ApiModelProperty(value = "记录笔记时间")
    @TableField("study_notes_time")
    private String studyNotesTime;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public Integer getStudyNotesId() {
        return studyNotesId;
    }

    public void setStudyNotesId(Integer studyNotesId) {
        this.studyNotesId = studyNotesId;
    }

    public String getStudyNotes() {
        return studyNotes;
    }

    public void setStudyNotes(String studyNotes) {
        this.studyNotes = studyNotes;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public String getStudyNotesTime() {
        return studyNotesTime;
    }

    public void setStudyNotesTime(String studyNotesTime) {
        this.studyNotesTime = studyNotesTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
}
